<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Northern Thailand  Traveling Guide Website ......</title>
    <meta name="keywords" content="" />
<meta name="description" content="" />
 <script type="text/javascript" src="/javascripts/prototype.js"></script>
 <script type="text/javascript" src="/javascripts/mylibrs.js"></script>
      <%= stylesheet_link_tag "basic.css" %>
      <%= calendar_date_select_includes params[:style]%>
<link href="/styles.css" rel="stylesheet" type="text/css" />

  </head>
<body  >
  <% if @body_tag %>
<body id="main" <%= @body_tag %>>
  <% else %>
    <body >
  <% end %>
<!-- header begins -->
<div id="header">
	<div id="logo">
		<h1><a href="http://localhost:3000/">Northern Thailand</a></h>
		<h2><a href="http://localhost:3000/" id="metamorph">Traveling Guide Website</a></h2>
	</div>
	<div id="menu">
		<ul>
			<li><a href="/" title="">หน้าแรก</a></li>
			<li><a href="/tourists" title="">ที่เที่ยว</a></li>
			<li><a href="/restaurants" title="">ที่กิน</a></li>
			<li><a href="/residents" title="">ที่พัก</a></li>
			<li><a href="/plans" title="">ดูแผนการ</a></li>
		</ul>
	</div>
</div>
<!-- header ends -->
<!-- content begins -->
<div id="content">
  <div id="login" class="boxed">
  <% if not session[:user] %>
  <h2 class="title">เข้าสู่ระบบ</h2>
	<div class="content2">
        <% if flash[:message] %><div><%= flash[:message] %></div><% end %>
        <% if flash[:error] %><div><%= flash[:error] %></div><% end %>
        <% form_tag '/user/process_login' do -%>
         นามแฝง: <%= text_field "user", "username"  %>&#x00A;<br/>
         รหัสผ่าน: <%= password_field "user", "password" %>&#x00A;
        <%= submit_tag 'เข้าสู่ระบบ' %>
        <% end -%>
        <%= link_to "สมัครสมาชิก", users_path+"/new" %>
        <% else %>
        <div>ยินดีต้อนรับคุณ: <%= session[:user] %><% form_tag '/user/logout' do -%>
        <%= submit_tag 'logout' %></div>
 <% end -%>
 <% end %>
        </div>
        <%= @content_for_layout %>
        </div>
</div>
<div style="clear: both"> 
<!-- content begins -->
</div>
<!-- footer begins -->
<div id="metamorph1">
	<p>Copyright &copy; 2007. <a href="http://www.metamorphozis.com/" title="Free Web Templates">Free Web Templates</a></p>
	<p> <a href="#">Privacy Policy</a> | <a href="#">Terms of Use</a> | <a href="http://validator.w3.org/check/referer" title="This page validates as XHTML 1.0 Transitional"><abbr title="eXtensible HyperText Markup Language">XHTML</abbr></a> | <a href="http://jigsaw.w3.org/css-validator/check/referer" title="This page validates as CSS"><abbr title="Cascading Style Sheets">CSS</abbr></a></p>
</div>
<!-- footer ends -->
</body>
</html>




